<div id="top-pic">
	<div class="container">
		<?php if (ztmao('archive-kg') != '') { ?>
		<div class="row" style="padding-top: 20px;margin-bottom: -20px;">
		<div class="col-sm-12 col-md-6 col-lg-6 pic-left">
		<div class="swiper-container bannerbox">
			<div class="swiper-wrapper">
			<?php if (ztmao('banner1') != '') { ?>
				<div class="swiper-slide banlist">
					<img src="<?php echo ztmao('banner1'); ?>" onclick="window.location.href='<?php echo ztmao('banner1l'); ?>'" alt="<?php bloginfo('name'); ?>"/> 		
				</div>
			<?php } else { } ?>
			<?php if (ztmao('banner2') != '') { ?>
				<div class="swiper-slide banlist" style="background-image: url(<?php echo ztmao('banner2'); ?>);">
					<img src="<?php echo ztmao('banner2'); ?>" onclick="window.location.href='<?php echo ztmao('banner2l'); ?>'" alt="<?php bloginfo('name'); ?>"/> 	
				</div>
			<?php } else { } ?>
			<?php if (ztmao('banner3') != '') { ?>
				<div class="swiper-slide banlist" style="background-image: url(<?php echo ztmao('banner3'); ?>);">
					<img src="<?php echo ztmao('banner3'); ?>" onclick="window.location.href='<?php echo ztmao('banner3l'); ?>'" alt="<?php bloginfo('name'); ?>"/> 	
				</div>
			<?php } else { } ?>
			<?php if (ztmao('banner4') != '') { ?>
				<div class="swiper-slide banlist" style="background-image: url(<?php echo ztmao('banner4'); ?>);">
					<img src="<?php echo ztmao('banner4'); ?>" onclick="window.location.href='<?php echo ztmao('banner4l'); ?>'" alt="<?php bloginfo('name'); ?>"/> 	
				</div>
			<?php } else { } ?>
			<?php if (ztmao('banner5') != '') { ?>
				<div class="swiper-slide banlist" style="background-image: url(<?php echo ztmao('banner5'); ?>);">
					<img src="<?php echo ztmao('banner5'); ?>" onclick="window.location.href='<?php echo ztmao('banner5l'); ?>'" alt="<?php bloginfo('name'); ?>"/> 	
				</div>
			<?php } else { } ?>
			</div>
			<div class="swiper-pagination bannav"></div>
			<div class="swiper-button-next banleft"><i class="iconfont icon-gengduo bannerjb"></i></div>
			<div class="swiper-button-prev banright"><i class="iconfont icon-fanhui bannerjb"></i></div>
		</div>
		</div>
		<div class="col-xs-6 col-sm-6 col-md-3 col-lg-3 pic-mid">
				<ul>
				<?php 
					$sticky = get_option('sticky_posts');
        		    rsort( $sticky );
        		    $sticky = array_slice( $sticky, 0, 4);
         		   query_posts( array( 'post__in' => $sticky, 'ignore_sticky_posts'=>2, 'posts_per_page'=>2) );
       		  ?>
        		<?php if (have_posts()) : ?>
				<?php while (have_posts()) : the_post(); ?>
					<li><a href="<?php the_permalink(); ?>" <?php if( ztmao('ztmao_banner-url')) { echo 'target="_blank"';}?>>
				<?php if (ztmao('qiniu') == '1') { ?>    
				<?php wpjam_post_thumbnail(array(274.95,202),$crop=1);?>    
				<?php } else { } ?>    
				<?php if (ztmao('qiniu') == '0') { ?>    
					<img src="<?php echo get_template_directory_uri(); ?>/timthumb.php?src=<?php echo post_thumbnail_src(); ?>&w=274.95&h=202&zc=1" alt="<?php the_title(); ?>"/> 
				<?php } else { } ?> 
				<div class="pic-title">
					<h4><?php the_title(); ?></h4>
				</div>
					</a></li>
				<?php endwhile; ?>
				<?php else : ?>	
				<?php endif; ?>
				<?php wp_reset_query(); ?>
				</ul>
		</div>
		<div class="col-xs-6 col-sm-6 col-md-3 col-lg-3 pic-right">
				<ul>
				<?php 
					$sticky = get_option('sticky_posts');
       		     rsort( $sticky );
         		   $sticky = array_slice( $sticky, 0, 4);
          		  query_posts( array( 'post__in' => $sticky, 'posts_per_page'=>2,'ignore_sticky_posts'=>2,'offset'=>2) );
        		 ?>
      		  <?php if (have_posts()) : ?>
				<?php while (have_posts()) : the_post(); ?>
					<li><a href="<?php the_permalink(); ?>" <?php if( ztmao('ztmao_banner-url')) { echo 'target="_blank"';}?>>
					<?php if (ztmao('qiniu') == '1') { ?>    
					<?php wpjam_post_thumbnail(array(274.95,202),$crop=1);?>    
					<?php } else { } ?>    
					<?php if (ztmao('qiniu') == '0') { ?>    
					<img src="<?php echo get_template_directory_uri(); ?>/timthumb.php?src=<?php echo post_thumbnail_src(); ?>&w=274.95&h=202&zc=1" alt="<?php the_title(); ?>"/> 
					<?php } else { } ?> 
					<div class="pic-title">
						<h4><?php the_title(); ?></h4>
					</div>
					</a></li>
				<?php endwhile; ?>
				<?php else : ?>		
				<?php endif; ?>
				<?php wp_reset_query(); ?>
				</ul>
		</div>
		</div>
		<?php } ?>
		<?php if (ztmao('ztmao_ad_index') != '') { ?>
		<div class="row" style="padding-top: 20px;">
			<!--adv01 -->
			<div id="adv01">
				<?php echo ztmao('ztmao_ad_index_url'); ?>
			</div>
		</div>
		<?php } ?>
	</div>
</div>